package com.me.study.javaCore.event.java;

import com.me.common.util.event.MyEventListener;
import java.util.EventObject;

/**
 * java 事件发布：监听 开门事件 的监听器
 *
 * @author ME
 * @date   2020/5/10
 */
public class OpenDoorListener implements MyEventListener {

    @Override
    public void onEvent(EventObject event) {
        Door door = (Door) event.getSource();
        System.out.println("监听器：有人回来啦，自动开灯吧~~");
    }
}
